package cn.yunhe.spring.mybatis.dao;

import cn.yunhe.spring.mybatis.model.Goods;
import jdk.nashorn.internal.objects.annotations.Property;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

import javax.annotation.PreDestroy;
import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2016/11/29.
 */

@Repository
public interface GoodsMapper {
    public Goods getGoods(Goods goods);
    public void addGoods(Goods goods);
    public void deleteGoods(Goods goods);
    public void editGoods(Goods goods);
    public List<Object>  getLikeGoods(Map<String,Object> goods);//模糊查询商品
    public Integer getLikeCount(Map<String,Object> goods);
}
